package com.tensquare.qa.mapper;

import com.tensquare.qa.pojo.Problem;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author Alfred
 * @description TODO
 * @date 2021/4/23 19:36
 */
@Mapper
@Repository
public interface ProblemMapper {
    void add(Problem problem);
    List<Problem> findAll();
    Problem findById(String id);
    void update(Problem problem);
    void delete(String id);
    List<Problem> findSearch(Map searchMap);
}
